#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

unsigned int  MyStrlen(const char* pStr)
{
	int count = 0;
	int i = 0;
	while (pStr[i] != '\0')
	{
		count++;
		i++;
	}
	return count;
}

int main()
{
	char str[50] = { 0 };
	gets(str);
	unsigned int len = 0;
	len = MyStrlen(str);
	printf("%u", len);
	return 0;
}